package com.weishu.installment.domain.shoufang;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class SfLoanDetailRequestBean {

    // 利率
    private String rate;// 利率
    private String serviceFee;// 一次性服务费
    // 合同
    private Long contractId;// 合同ID
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startDate;// 合同开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endDate;// 合同结束时间
    private String balance;// 应付租约合计
    private String sxBalance;//授信额

    //金融产品
    private Long productId;//金融产品Id

    private Long periods;	// 借款期限

    public Long getProductId() {
        return productId;
    }
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getRate() {
        return rate;
    }
    public void setRate(String rate) {
        this.rate = rate;
    }
    public String getServiceFee() {
        return serviceFee;
    }
    public void setServiceFee(String serviceFee) {
        this.serviceFee = serviceFee;
    }
    public Long getContractId() {
        return contractId;
    }
    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }


    public String getSxBalance() {
        return sxBalance;
    }
    public void setSxBalance(String sxBalance) {
        this.sxBalance = sxBalance;
    }
    public String getBalance() {
        return balance;
    }
    public void setBalance(String balance) {
        this.balance = balance;
    }

    public Date getStartDate() {
        return startDate;
    }
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    public Date getEndDate() {
        return endDate;
    }
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
    public Long getPeriods() {
        return periods;
    }
    public void setPeriods(Long periods) {
        this.periods = periods;
    }

    @Override
    public String toString() {
        return "SfLoanDetailRequestBean{" +
                "rate='" + rate + '\'' +
                ", serviceFee='" + serviceFee + '\'' +
                ", contractId=" + contractId +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", balance='" + balance + '\'' +
                ", sxBalance='" + sxBalance + '\'' +
                ", productId=" + productId +
                ", periods=" + periods +
                '}';
    }
}

